<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<meta name="keywords" content="{notempty name="list_keywords"}{$list_keywords}{else/}最新{$list_name},{$keywords}{/notempty}">
<meta name="description" content="{notempty name="list_description"}{$list_description}{else/}{$description}{/notempty}">
{include file="zp_include" /}
</head>
<body>
{include file="zp_header" /}
<div class="tab-a navs w1214">
<div class="wz fn-left"><span>您所在的位置：</span><a href="{$siteurl}" title="{$sitename}">首页</a><em>&gt;&gt;</em><a class="current">杂谈口水</a></div></div>
<div class="new-list">
<div class="tab-a  w1214">
{php} $sql='select vod.vod_letters,vod.vod_cid,cm.vod_id as cm_cid,vod.vod_name,vod.vod_title,vod.vod_id,vod.vod_addtime,vod.vod_pic,vod.vod_continu from  '.C('db_prefix').'comment cm inner join   '.C('db_prefix').'vod vod on cm.vod_id=vod.vod_id  where ispass  = 1 group by cm.vod_id  order by vod.vod_hits_month desc limit 100'; $Form=M(); $list =$Form->query($sql);{/php}
<div class="koushui" id="water-fall">
{volist name="list" id="vo">
    <div class="ui-waterfall" data="{$vo.vod_id}">
      <div class="fall-img">
        <?php $link = ff_data_url('vod',$vo['cm_cid'],$vo['vod_cid'],$vo['vod_name'],1,$vo['vod_jumpurl'],$vo['vod_letters']); $img = ff_img_url($vo['vod_pic'],$vo['vod_content']); ?>
        <div class="fall-action user-bt">
        <a class="ks-btn ks-fav" id="wish" rel="nofollow" href="javascript:void(0);" data="{:UUU('User-Comm/savelove',array('id'=>$vo['vod_id']),true,false)}">收藏</a>
        <a class="ks-btn ks-rss" id="dingyue" rel="nofollow" href="javascript:void(0);" data="{:UUU('User-Comm/saveremind',array('id'=>$vo['vod_id']),true,false)}">订阅</a></div>
        <a target="_blank" href="{$link}"><img class="loading" width="211" height="300" src="{$apicss}zanpian/images/220x307.jpg" data-original="{$img}" alt="{$vo.vod_title}"/></a>
                   <div class="fall-ing-txt">{$vo.vod_title}</div>
                   <div class="fall-ing-bg">&nbsp;</div>
               </div>
      <div class="fall-desc">
        <p><h2><a href="{$link}" title="{$vo.vod_name}" target="_blank">{$vo.vod_name}</a></h2></p>
        <p>{$vo.vod_addtime|date='Y-m-d H:i:s',###}</p>
      </div>
      <div class="fall-comment">
       <ul>
		  {php} $sql='select userid,content,pid From '.C('db_prefix').'comment  where vod_id ='.$vo['cm_cid'].' and  ispass  = 1  order by creat_at desc limit 3'; $Form=M(); $ls =$Form->query($sql);
		  {/php}
		   {volist name="ls" id="cms">
           {php}$avatar=ps_getavatar($cms['userid']);{/php} 
          <li><a href="{:UU('User-Home/index',array('id'=>$cms['userid']),true,false)}" title="{$cms.name}" target="_blank"><img src="{$avatar.small}" title="{$cms.name}"/></a>
            	<p><em><span class='comment_select'><a href="{:UU('User-Home/index',array('id'=>$cms['userid']),true,false)}" title="{$cms.userid|getnickname}" target="_blank">{$cms.userid|getnickname}</a></span>：{eq name="cms.pid" value="0"}{$cms.content|msubstr=0,40,'...'}{else/}{:str_replace('<','',substr($cms[content],0,strpos($cms[content],'<')))}{/eq}</em></p>
          </li>
          {/volist}
        </ul>
         <div class="viewmore"><a target="_blank" href="{$link}#comment">查看全部{:commentcount($vo['cm_cid'])} 条评论</a></div></div></div>
      {/volist}
    </div>
    <!--// 瀑布流 --E //-->
</div>
</div>
</div>
</div>
<script type="text/javascript" src="{$apicss}zanpian/js/jquery.masonry.min.js" charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function(){
		// ui-waterfall
		$(".ui-waterfall").hover(function(){		
			$(this).find(".fall-action").show();
		},function(){
			$(this).find(".fall-action").hide();
		});	
		$("#water-fall").masonry({
			itemSelector: '.ui-waterfall'
		}); 
	});
</script>
<script type="text/javascript"> 
var rArray=new Array();lArray=new Array();isload=0;$(document).ready(function(){ $(".ks-btn").click(function(){if(!checkcookie()){login_form();return false;}
$.showfloatdiv({txt:'数据提交中...',cssname:'loading'});var curobj=$(this);$.get(curobj.attr('data'),function(r){try{r=eval('('+r+')');$.hidediv(r);if(r['rcode']==1){getdata();}}
catch(e){login_form();return false;}},'html');});});function getdata(){if(checkcookie()){ $.ajax({url:syndomain+'{$useurl}user-Center-getuser_data',success:function(r){rArray=new Array();lArray=new Array();isload=0;if(r['reminds']!=false){for(var i in r['reminds']){rArray.push(r['reminds'][i]);}}
if(r['lovevods']!=false){for(var i in r['lovevods']){lArray.push(r['lovevods'][i]);}}
isload=1;},dataType:'jsonp'});}}
getdata();
</script>
{include file="zp_footer" /}
</body>
</html>